package com.SouthernWall_404.AgeSuitcase.Common.API.GuiAPI.Animation;

import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.components.AbstractWidget;

public class Wait extends AbstractAnimation{
    public Wait(AbstractWidget abstractWidget, int time) {
        super(abstractWidget, time);
    }
    public Wait(AbstractWidget abstractWidget, int time,AbstractAnimation next) {
        super(abstractWidget, time,next);
    }

    @Override
    public void render(GuiGraphics guiGraphics, float partialTicks) {

        if(isFinished())
        {
            return;
        }
        super.render(guiGraphics,partialTicks);
        if(!isFinished())
        {
            this.abstractWidget.render(guiGraphics,this.x,this.y,partialTicks);
        }
    }

    @Override
    void customOnFinished(GuiGraphics guiGraphics, float partialTicks) {

    }
}
